/**
 * create by young (young2f@outlook.com) on 2020/12/17
 */
'use strict';
const moment = require('moment');
moment.locale('zh-cn');

module.exports = {
  code: {
    type: 'string', inputType: 'input',  _type: 'string', title: '编码',disabled: true, enableArea: [
      'table', 'input',
      'detail','search'

    ]
  },//除了租户相关的，权限、用户外，其它的模型都默认有code和name

  // labels: {
  //   type: Array, desc: '动态标签', enableArea: []
  // },
  tenantCode: { type: 'string',desc: '租户编码',  },
  tenantName: { type: 'string' },
  createUser: { type: 'string' },
  createUsername: {
    type: 'string', inputType: 'input', desc: '创建者', enableArea: [
      'table',
      'detail'
    ]
  },
  /**
   * 是否删除
   */
  isDeleted: { type: 'boolean', default: false },
  // createdTs: {
  //   type: Date,
  //   default: getNow()
  // },
  // updatedTs: {
  //   type: Date,
  //   default: getNow()
  // },

};

